<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page language="java" import="com.model.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %> 


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'dbc.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <style type="text/css" media="all">
      @import url("css/maven-base.css"); @import url("css/maven-theme.css"); @import url("css/site.css"); @import
      url("css/screen.css");
    </style>
    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />

</head>
<body>
	<a href="${ctx}/message/show">留言管理</a>
	<a href="${ctx}/user/register.jsp">添加用户</a>
	<p>
		您好：${loginUser.username}</p>
	<display:table name="${userslist}" id="obj" requestURI="${ctx}/user/show" pagesize="3" export="true">
		<display:column property="id" title="ID"/>
		<display:column property="username" title="用户名"/>
		<display:column property="password" title="密码"/>
		<display:column title="操作">
            <a href="${ctx}/user/delete?id=${obj.id}">删除</a>
			<a href="${ctx}/user/edit?id=${obj.id}">修改</a>
		</display:column>
	</display:table>

</body>
</html>

